"""myblog URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url

from WebServer.blog.NewInterface import StockSelectorViews, Ez_Param
from . import views
from .NewInterface.views import *




urlpatterns = [
    url(r'^$', views.index),
    url(r'^index.html/$', views.index),
    url(r'^jso/$', views.more_json),
    url(r'^dayup/$', views.dayup),
    url(r'^tag_manager/$', views.tag_edit),

    # apis:
    url(r'api/market-temperature', views.market_temperature_a),
    url(r'api/high-limit', views.high_limit_continuous_a),
    url(r'api/stock-calendar', views.stock_calendar_a),

    # 标签日下的两个api
    url(r'api/tag_rela_from_code', views.code_rela_tags),
    url(r'api/tag_rela', views.tag_rela_codes),
    url(r'api/rela_code_by_d_t_p', views.rela_codes_by_d_t_p),
    url(r'api/continue_stock_info', views.continue_stock_info_a),
    # 股票标签管理的api
    url(r'api/search-kw-ctr', SearchCTRKWApiView.as_view()),
    url(r'api/search-tag-advice', SearchTagsAdviceApiView.as_view()),
    url(r'api/ctr-from-code', CTRFromCodeApiView.as_view()),
    url(r'api/ctr-from-tag', CTRFromTagApiView.as_view()),
    url(r'api/file-upload-ctr', CTRFileUploadApiView.as_view()),

    url(r'api/replay-remote-crawl', ReplayRemoteCrawlApiView.as_view()),
    url(r'api/replay-check-new', ReplayCheckOutMethodApiView.as_view()),
    url(r'api/ctr-batch-op', CTRBatchInsertOrUpdateApiView.as_view()),
    url(r'api/ctrbatch', CTRBatchApiView.as_view()),
    url(r'api/tr-delete',TagRenameDeleteApiView.as_view()),
    url(r'api/tr', TagRenameApiView.as_view()),
    url(r'api/tbatch',TagRenameBatchApiView.as_view()),
    url(r'api/tag-list', TagRenameListApiView.as_view()),
    url(r'api/tag-sub', TagRenameSubApiView.as_view()),
    url(r'api/ctr-batch-new', CTRBatchNewApiView.as_view()),

    url(r'api/ctd', ReplayApiView.as_view()),
    url(r'api/ctcel',ReplayDelApiView.as_view()),
    url(r'api/ctbatch',ReplayBatchApiView.as_view()),
    url(r'api/ctr', CTRApiView.as_view()),

    url(r'api/ts', TagStatusApiView.as_view()),

    # 选股助手
    # 互动易问答
    url(r'api/selector-hdy-question-code', StockSelectorViews.HuDongYiQuestionApiView.as_view()),
    url(r'api/selector-hdy-question-all', StockSelectorViews.HuDongYiQuestionAllApiView.as_view()),
    # 淘股吧标签搜索
    url(r'api/selector-tgb-question', StockSelectorViews.TaoGuBaPostApiView.as_view()),
    url(r'api/selector-stock-tag-detail', StockSelectorViews.StockTagDetailApiView.as_view()),
    url(r'api/selector-stock-tag', StockSelectorViews.StockTagApiView.as_view()),
    url(r'api/selector-stock-announce', StockSelectorViews.StockAnnouncementApiView.as_view()),
    url(r'api/selector-financial-data', StockSelectorViews.FinancialApiView.as_view()),
    url(r'api/post', StockSelectorViews.POSTApiView.as_view()),


    # 股票关系管理

    # views:
    url(r'market-temperature', views.market_temperature_html),
    url(r'market-thermometer', views.market_thermometer_html),
    url(r'stock-calendar', views.stock_calendar_html),


    url(r'api_post', Ez_Param.api_post),
    url(r'api_get', Ez_Param.api_get),
    url(r'req_post', Ez_Param.req_post),
    url(r'req_get', Ez_Param.req_get),

]
